package com.me.constant;

import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
import com.me.control.SoundManager;
import com.me.happybugs.HappyBugs_Main;


public class Constant {
	
	//Level đã mở khóa.
	public static int LEVEL = 1;
	public static float STAGE_WIDTH = 1280;
	public static float STAGE_HEIGHT = 720;
	public static  final float ASPECT_RATIO = (float)STAGE_WIDTH / (float)STAGE_HEIGHT;
	
	public static int xSpeedMoveObj = 3;
	public static int ySpeedMoveObj = 2;
	
	public static int xSpeedWorm = 4;
	public static int ySpeedWorm = 3;
	
	public static int itimeToCreateObj = 50;
	public static boolean isSharedScore= false;
	public static int iScore = 0;
	public static boolean b_bestScoreMain = true;
	public static boolean b_backDevice = true;
	public static Skin skin = HappyBugs_Main.getMySkin();
	public static TextureAtlas atlas = HappyBugs_Main.getAtlas();
	public static SoundManager soundManager = new SoundManager();
	
	public static void getSpeedRandom(){
		switch(LEVEL){
		case 1:
			itimeToCreateObj = 50;
			break;
		case 2:
			itimeToCreateObj =45;
			break;
		case 3:
			itimeToCreateObj = 40;
			break;
		case 4:
			itimeToCreateObj =37;
			break;
		case 5:
			itimeToCreateObj = 35;
			break;
		case 6:
			itimeToCreateObj = 30;
			break;
		case 7:
			itimeToCreateObj = 27;
			break;
		case 8:
			itimeToCreateObj = 25;
			break;
		case 9:
			itimeToCreateObj = 18;
			break;
		default:
			break;
		}
	}
	
	public static void resetGame(){
		iScore = 0;
		LEVEL = 1;
	}
}